home *** CD-ROM | disk | FTP | other *** search
- Path: news.biddeford.com!usenet
- From: Tim Steiger <tsteiger@biddeford.com>
- Newsgroups: comp.lang.c
- Subject: Re: Invalid Indirection???
- Date: Sat, 16 Mar 1996 14:14:44 -0800
- Organization: Biddeford Internet Corp.
- Message-ID: <314B3D54.266E@biddeford.com>
- References: <4i7cck$t67@infa.central.susx.ac.uk> <4iah9k$r02@newshost.cyberramp.net> <TANMOY.96Mar15111443@qcd.lanl.gov>
- NNTP-Posting-Host: bidd23.biddeford.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Tanmoy Bhattacharya wrote:
- >
- > In article <4iah9k$r02@newshost.cyberramp.net>
- > sinan@cyberramp.net (John Noland) writes:
- >
- > JN: In article <4i7cck$t67@infa.central.susx.ac.uk>, taux5@central.susx.ac.uk says...
- > JN: >
- > JN: > tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
- > JN: >
- > JN: >/* This is where the compiler stops and says there's an invalid
- > JN: >indirection for the "tmp" assignment */
- > JN:
- > JN: To multiply, you need whitespace. Check the lexical conventions for the
- >
- > Why?go read about unary operators...
-
- >
- > JN: evaluation of tokens for your compiler to be certain, but it looks like
- > JN: you've confused him.
- >
- > Wasn't the original poster using a C compiler? Big mistake trying to
- > compile a C program without one :-)duh?!?!? What?!?!?
-
- >
- > Or are you under the misapprehension that a compiler can get confused
- > by correct and trivial code and still call itself a C compiler? Or
- > that it can have `lexical conventions for the evaluation of tokens'
- > whatever that garbage is?Do you're bosses know how you are spending their time?
-
- >
- > JN: Also, your open/closed parentheses don't match in this statement.
- > JN:
- > JN: Your statement should like this (underscores indicate spaces):
- > JN:
- > JN: tmp = ((tempi[i]_*_tempj[i]) + (tempi[i+1]_*_tempj[i+1]))
- >
- > Spaces are often good for reasability, but in this context, they do
- > not change the meaning of the code.
- >
- > Cheers
- > Tanmoy
- > --
- > tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- > Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- > Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- > <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- > internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- > fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-